using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace project
{
    public partial class Form3 : Form
    {
        string b = "";

         static public List<DBClass> purchase_list = new List<DBClass>();
         static public List<string> magazine_list = new List<string>();

         static public Publisher_Receipt_Object pub_receipt = new Publisher_Receipt_Object();
         static public Retailer_Receipt_Object ret_receipt = new Retailer_Receipt_Object();
         static public List<Retailer_DBClass> retailer_purchaselist = new List<Retailer_DBClass>();
 

        //Clears all the data present in Form3
        public static void DataReset()
        {
            purchase_list.Clear();
            magazine_list.Clear();
        }


        public Form3()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Retailer frm = new Retailer();
            frm.a = textBox1.Text;

            Application.OpenForms["Form3"].Close();


        }

        private void Form3_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (Application.OpenForms.Count == 1)
            {
                Program.main_form.Show();
            }
        }
    }
}